function addDetailsToTable() {
	/*
	 var myRowData=[{
	 offer_id : "OF-00B",
	 customer : "Bosch",
	 position : "IT Engineer",
	 candidate : "Zhou Yazhou",
	 manager : "Jack Li",
	 offer_date : "2007-01-01",
	 amount : "100",
	 offer_location : "Suzhou",
	 belong : "Jack-10%;Mary-90%",
	 ensure : "Test"
	 }, {
	 offer_id : "OF-00A",
	 customer : "Bosch",
	 position : "IT Engineer",
	 candidate : "Zhou Yazhou",
	 manager : "Jack Li",
	 offer_date : "2007-01-01",
	 amount : "100",
	 offer_location : "Suzhou",
	 belong : "Jack-10%;Mary-90%",
	 ensure : "Test"
	 }]
	
	 for(var a=2;a<10;a++){
	 myRowData[a]={
	
	 offer_id : "OF-AA"+a,
	 customer : "Bosch",
	 position : "IT Engineer",
	 candidate : "Zhou Yazhou",
	 manager : "Jack Li",
	 offer_date : "2007-01-01",
	 amount : "100",
	 offer_location : "Suzhou",
	 belong : "Jack-10%;Mary-90%",
	 ensure : "Test"	
	
	 }
	
	
	 }
	 */

	var newRecord = new Object();
	newRecord.offer_id = "Test Temp";
	//Using jQuery to get value of jsf pages:
	//jQuery("#FormID\\:fieldID").val()

	newRecord.customer = jQuery("#test\\:customer").val();
	newRecord.position = jQuery("#test\\:position").val();
	newRecord.customer = jQuery("#test\\:customer").val();
	newRecord.candidate = jQuery("#test\\:candidate").val();
	newRecord.manager = jQuery("#test\\:manager").val();
	newRecord.offer_date = jQuery("#test\\:offer_dateInputDate").val();
	newRecord.amount = jQuery("#test\\:amount").val();
	newRecord.offer_location = jQuery("#test\\:offer_location").val();
	newRecord.belong = jQuery("#test\\:belong").val();
	newRecord.ensure = jQuery("#test\\:ensure").val();
	
	jQuery("#list4").addRowData("1", newRecord, "first");
	//TODO what's the usage of first parameter
}
